package com.kitty.game.equip.handler;

import com.kitty.game.admin.message.ReqAdminMakeEquip;
import com.kitty.game.admin.service.AdminService;
import com.kitty.game.equip.util.EquipProductUtil;
import com.kitty.game.role.model.Role;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.Map;
@Component
public class EquipProduceHandler {
    /*明天写*/

    @Autowired
    private AdminService adminService;

    public void getEquip(Role role, String msg,int level){
        int gender=role.getGender();
        int type=0;
        switch (msg){
            case "力套":
                type=1;
                break;
            case "法套":
                type=2;
                break;
            case "敏套":
                type=3;
                break;
            case "体套":
                type=4;
                break;
        }
        if(type==1 ){ //力
            if(gender==1){
                ReqAdminMakeEquip reqAdminMakeEquip_nanmao = getReqAdminMakeEquip_li_gai1(role , level ,"男帽") ;
                adminService.makeEquip(role, reqAdminMakeEquip_nanmao);
                ReqAdminMakeEquip reqAdminMakeEquip_nanyi = getReqAdminMakeEquip_li_gai1(role , level ,"男衣") ;
                adminService.makeEquip(role, reqAdminMakeEquip_nanyi);
            }else {
                ReqAdminMakeEquip reqAdminMakeEquip_nvmao = getReqAdminMakeEquip_li_gai1(role , level ,"女帽") ;
                adminService.makeEquip(role, reqAdminMakeEquip_nvmao);
                ReqAdminMakeEquip reqAdminMakeEquip_nvyi = getReqAdminMakeEquip_li_gai1(role , level ,"女衣") ;
                adminService.makeEquip(role, reqAdminMakeEquip_nvyi);
            }
            ReqAdminMakeEquip reqAdminMakeEquip_xiezi = getReqAdminMakeEquip_li_gai1(role , level ,"鞋" ) ;
            adminService.makeEquip(role, reqAdminMakeEquip_xiezi);

            if(role.getPolar() == 1){
                ReqAdminMakeEquip reqAdminMakeEquip_wuqi = getReqAdminMakeEquip_li_gai1(role , level ,"枪") ;
                adminService.makeEquip(role, reqAdminMakeEquip_wuqi);
            }else if(role.getPolar() == 2){
                ReqAdminMakeEquip reqAdminMakeEquip_wuqi = getReqAdminMakeEquip_li_gai1(role , level ,"爪") ;
                adminService.makeEquip(role, reqAdminMakeEquip_wuqi);
            }else if(role.getPolar() == 3){
                ReqAdminMakeEquip reqAdminMakeEquip_wuqi = getReqAdminMakeEquip_li_gai1(role , level ,"剑") ;
                adminService.makeEquip(role, reqAdminMakeEquip_wuqi);
            }else if(role.getPolar() == 4){
                ReqAdminMakeEquip reqAdminMakeEquip_wuqi = getReqAdminMakeEquip_li_gai1(role , level ,"扇") ;
                adminService.makeEquip(role, reqAdminMakeEquip_wuqi);
            }else if(role.getPolar() == 5){
                ReqAdminMakeEquip reqAdminMakeEquip_wuqi = getReqAdminMakeEquip_li_gai1(role , level ,"锤");
                adminService.makeEquip(role, reqAdminMakeEquip_wuqi);
            }

        }else if(type == 2){//法
            if(role.getGender() == 1){ //男的
                ReqAdminMakeEquip reqAdminMakeEquip_nanmao = getReqAdminMakeEquip_fa_gai(role , level ,"男帽") ;
                adminService.makeEquip(role, reqAdminMakeEquip_nanmao);
                ReqAdminMakeEquip reqAdminMakeEquip_nanyi = getReqAdminMakeEquip_fa_gai(role , level ,"男衣") ;
                adminService.makeEquip(role, reqAdminMakeEquip_nanyi);
            }else{
                ReqAdminMakeEquip reqAdminMakeEquip_nvmao = getReqAdminMakeEquip_fa_gai(role , level ,"女帽") ;
                adminService.makeEquip(role, reqAdminMakeEquip_nvmao);
                ReqAdminMakeEquip reqAdminMakeEquip_nvyi = getReqAdminMakeEquip_fa_gai(role , level ,"女衣") ;
                adminService.makeEquip(role, reqAdminMakeEquip_nvyi);
            }
            ReqAdminMakeEquip reqAdminMakeEquip_xiezi_fa = getReqAdminMakeEquip_fa_gai(role , level ,"鞋") ;
            adminService.makeEquip(role, reqAdminMakeEquip_xiezi_fa);

            if(role.getPolar() == 1){
                ReqAdminMakeEquip reqAdminMakeEquip_wuqi = getReqAdminMakeEquip_fa_gai(role , level ,"枪") ;
                adminService.makeEquip(role, reqAdminMakeEquip_wuqi);
            }else if(role.getPolar() == 2){
                ReqAdminMakeEquip reqAdminMakeEquip_wuqi = getReqAdminMakeEquip_fa_gai(role , level ,"爪") ;
                adminService.makeEquip(role, reqAdminMakeEquip_wuqi);
            }else if(role.getPolar() == 3){
                ReqAdminMakeEquip reqAdminMakeEquip_wuqi = getReqAdminMakeEquip_fa_gai(role , level ,"剑") ;
                adminService.makeEquip(role, reqAdminMakeEquip_wuqi);
            }else if(role.getPolar() == 4){
                ReqAdminMakeEquip reqAdminMakeEquip_wuqi = getReqAdminMakeEquip_fa_gai(role , level ,"扇") ;
                adminService.makeEquip(role, reqAdminMakeEquip_wuqi);
            }else if(role.getPolar() == 5){
                ReqAdminMakeEquip reqAdminMakeEquip_wuqi = getReqAdminMakeEquip_fa_gai(role , level ,"锤") ;
                adminService.makeEquip(role, reqAdminMakeEquip_wuqi);
            }
        }else if(type == 3){//敏
            if(role.getGender() == 1){ //男的
                ReqAdminMakeEquip reqAdminMakeEquip_nanmao = getReqAdminMakeEquip_fa_gai(role , level ,"男帽") ;
                adminService.makeEquip(role, reqAdminMakeEquip_nanmao);
                ReqAdminMakeEquip reqAdminMakeEquip_nanyi = getReqAdminMakeEquip_fa_gai(role , level ,"男衣") ;
                adminService.makeEquip(role, reqAdminMakeEquip_nanyi);
            }else{
                ReqAdminMakeEquip reqAdminMakeEquip_nvmao = getReqAdminMakeEquip_fa_gai(role , level ,"女帽") ;
                adminService.makeEquip(role, reqAdminMakeEquip_nvmao);
                ReqAdminMakeEquip reqAdminMakeEquip_nvyi = getReqAdminMakeEquip_fa_gai(role , level ,"女衣") ;
                adminService.makeEquip(role, reqAdminMakeEquip_nvyi);
            }
            ReqAdminMakeEquip reqAdminMakeEquip_xiezi_fa = getReqAdminMakeEquip_fa_gai(role , level ,"鞋") ;
            adminService.makeEquip(role, reqAdminMakeEquip_xiezi_fa);

            if(role.getPolar() == 1){
                ReqAdminMakeEquip reqAdminMakeEquip_wuqi = getReqAdminMakeEquip_fa_gai(role , level ,"枪") ;
                adminService.makeEquip(role, reqAdminMakeEquip_wuqi);
            }else if(role.getPolar() == 2){
                ReqAdminMakeEquip reqAdminMakeEquip_wuqi = getReqAdminMakeEquip_fa_gai(role , level ,"爪") ;
                adminService.makeEquip(role, reqAdminMakeEquip_wuqi);
            }else if(role.getPolar() == 3){
                ReqAdminMakeEquip reqAdminMakeEquip_wuqi = getReqAdminMakeEquip_fa_gai(role , level ,"剑") ;
                adminService.makeEquip(role, reqAdminMakeEquip_wuqi);
            }else if(role.getPolar() == 4){
                ReqAdminMakeEquip reqAdminMakeEquip_wuqi = getReqAdminMakeEquip_fa_gai(role , level ,"扇") ;
                adminService.makeEquip(role, reqAdminMakeEquip_wuqi);
            }else if(role.getPolar() == 5){
                ReqAdminMakeEquip reqAdminMakeEquip_wuqi = getReqAdminMakeEquip_fa_gai(role , level ,"锤") ;
                adminService.makeEquip(role, reqAdminMakeEquip_wuqi);
            }
        }else if(type == 4){//体
            if(role.getGender() == 1){ //男的
                ReqAdminMakeEquip reqAdminMakeEquip_nanmao = getReqAdminMakeEquip_ti_gai(role , level ,"男帽") ;
                adminService.makeEquip(role, reqAdminMakeEquip_nanmao);
                ReqAdminMakeEquip reqAdminMakeEquip_nanyi = getReqAdminMakeEquip_ti_gai(role , level ,"男衣") ;
                adminService.makeEquip(role, reqAdminMakeEquip_nanyi);
            }else{
                ReqAdminMakeEquip reqAdminMakeEquip_nvmao = getReqAdminMakeEquip_ti_gai(role , level ,"女帽") ;
                adminService.makeEquip(role, reqAdminMakeEquip_nvmao);
                ReqAdminMakeEquip reqAdminMakeEquip_nvyi = getReqAdminMakeEquip_ti_gai(role , level ,"女衣") ;
                adminService.makeEquip(role, reqAdminMakeEquip_nvyi);
            }
            ReqAdminMakeEquip reqAdminMakeEquip_xiezi_fa = getReqAdminMakeEquip_ti_gai(role , level ,"鞋") ;
            adminService.makeEquip(role, reqAdminMakeEquip_xiezi_fa);

            if(role.getPolar() == 1){
                ReqAdminMakeEquip reqAdminMakeEquip_wuqi = getReqAdminMakeEquip_ti_gai(role , level ,"枪") ;
                adminService.makeEquip(role, reqAdminMakeEquip_wuqi);
            }else if(role.getPolar() == 2){
                ReqAdminMakeEquip reqAdminMakeEquip_wuqi = getReqAdminMakeEquip_ti_gai(role , level ,"爪") ;
                adminService.makeEquip(role, reqAdminMakeEquip_wuqi);
            }else if(role.getPolar() == 3){
                ReqAdminMakeEquip reqAdminMakeEquip_wuqi = getReqAdminMakeEquip_ti_gai(role , level ,"剑") ;
                adminService.makeEquip(role, reqAdminMakeEquip_wuqi);
            }else if(role.getPolar() == 4){
                ReqAdminMakeEquip reqAdminMakeEquip_wuqi = getReqAdminMakeEquip_ti_gai(role , level ,"扇") ;
                adminService.makeEquip(role, reqAdminMakeEquip_wuqi);
            }else if(role.getPolar() == 5){
                ReqAdminMakeEquip reqAdminMakeEquip_wuqi = getReqAdminMakeEquip_ti_gai(role , level ,"锤") ;
                adminService.makeEquip(role, reqAdminMakeEquip_wuqi);
            }
        }
    }


    public void getEquip(Role role, String msg){
        int level=role.getLevel();
        int gender=role.getGender();
        int type=0;
        switch (msg){
            case "力套":
                type=1;
                break;
            case "法套":
                type=2;
                break;
            case "敏套":
                type=3;
                break;
            case "体套":
                type=4;
                break;
        }
        if(type==1 ){ //力
            if(gender==1){
                ReqAdminMakeEquip reqAdminMakeEquip_nanmao = getReqAdminMakeEquip_li_gai1(role , level ,"男帽") ;
                adminService.makeEquip(role, reqAdminMakeEquip_nanmao);
                ReqAdminMakeEquip reqAdminMakeEquip_nanyi = getReqAdminMakeEquip_li_gai1(role , level ,"男衣") ;
                adminService.makeEquip(role, reqAdminMakeEquip_nanyi);
            }else {
                ReqAdminMakeEquip reqAdminMakeEquip_nvmao = getReqAdminMakeEquip_li_gai1(role , level ,"女帽") ;
                adminService.makeEquip(role, reqAdminMakeEquip_nvmao);
                ReqAdminMakeEquip reqAdminMakeEquip_nvyi = getReqAdminMakeEquip_li_gai1(role , level ,"女衣") ;
                adminService.makeEquip(role, reqAdminMakeEquip_nvyi);
            }
            ReqAdminMakeEquip reqAdminMakeEquip_xiezi = getReqAdminMakeEquip_li_gai1(role , level ,"鞋" ) ;
            adminService.makeEquip(role, reqAdminMakeEquip_xiezi);

            if(role.getPolar() == 1){
                ReqAdminMakeEquip reqAdminMakeEquip_wuqi = getReqAdminMakeEquip_li_gai1(role , level ,"枪") ;
                adminService.makeEquip(role, reqAdminMakeEquip_wuqi);
            }else if(role.getPolar() == 2){
                ReqAdminMakeEquip reqAdminMakeEquip_wuqi = getReqAdminMakeEquip_li_gai1(role , level ,"爪") ;
                adminService.makeEquip(role, reqAdminMakeEquip_wuqi);
            }else if(role.getPolar() == 3){
                ReqAdminMakeEquip reqAdminMakeEquip_wuqi = getReqAdminMakeEquip_li_gai1(role , level ,"剑") ;
                adminService.makeEquip(role, reqAdminMakeEquip_wuqi);
            }else if(role.getPolar() == 4){
                ReqAdminMakeEquip reqAdminMakeEquip_wuqi = getReqAdminMakeEquip_li_gai1(role , level ,"扇") ;
                adminService.makeEquip(role, reqAdminMakeEquip_wuqi);
            }else if(role.getPolar() == 5){
                ReqAdminMakeEquip reqAdminMakeEquip_wuqi = getReqAdminMakeEquip_li_gai1(role , level ,"锤");
                adminService.makeEquip(role, reqAdminMakeEquip_wuqi);
            }

        }else if(type == 2){//法
            if(role.getGender() == 1){ //男的
                ReqAdminMakeEquip reqAdminMakeEquip_nanmao = getReqAdminMakeEquip_fa_gai(role , level ,"男帽") ;
                adminService.makeEquip(role, reqAdminMakeEquip_nanmao);
                ReqAdminMakeEquip reqAdminMakeEquip_nanyi = getReqAdminMakeEquip_fa_gai(role , level ,"男衣") ;
                adminService.makeEquip(role, reqAdminMakeEquip_nanyi);
            }else{
                ReqAdminMakeEquip reqAdminMakeEquip_nvmao = getReqAdminMakeEquip_fa_gai(role , level ,"女帽") ;
                adminService.makeEquip(role, reqAdminMakeEquip_nvmao);
                ReqAdminMakeEquip reqAdminMakeEquip_nvyi = getReqAdminMakeEquip_fa_gai(role , level ,"女衣") ;
                adminService.makeEquip(role, reqAdminMakeEquip_nvyi);
            }
            ReqAdminMakeEquip reqAdminMakeEquip_xiezi_fa = getReqAdminMakeEquip_fa_gai(role , level ,"鞋") ;
            adminService.makeEquip(role, reqAdminMakeEquip_xiezi_fa);

            if(role.getPolar() == 1){
                ReqAdminMakeEquip reqAdminMakeEquip_wuqi = getReqAdminMakeEquip_fa_gai(role , level ,"枪") ;
                adminService.makeEquip(role, reqAdminMakeEquip_wuqi);
            }else if(role.getPolar() == 2){
                ReqAdminMakeEquip reqAdminMakeEquip_wuqi = getReqAdminMakeEquip_fa_gai(role , level ,"爪") ;
                adminService.makeEquip(role, reqAdminMakeEquip_wuqi);
            }else if(role.getPolar() == 3){
                ReqAdminMakeEquip reqAdminMakeEquip_wuqi = getReqAdminMakeEquip_fa_gai(role , level ,"剑") ;
                adminService.makeEquip(role, reqAdminMakeEquip_wuqi);
            }else if(role.getPolar() == 4){
                ReqAdminMakeEquip reqAdminMakeEquip_wuqi = getReqAdminMakeEquip_fa_gai(role , level ,"扇") ;
                adminService.makeEquip(role, reqAdminMakeEquip_wuqi);
            }else if(role.getPolar() == 5){
                ReqAdminMakeEquip reqAdminMakeEquip_wuqi = getReqAdminMakeEquip_fa_gai(role , level ,"锤") ;
                adminService.makeEquip(role, reqAdminMakeEquip_wuqi);
            }
        }else if(type == 3){//敏
            if(role.getGender() == 1){ //男的
                ReqAdminMakeEquip reqAdminMakeEquip_nanmao = getReqAdminMakeEquip_fa_gai(role , level ,"男帽") ;
                adminService.makeEquip(role, reqAdminMakeEquip_nanmao);
                ReqAdminMakeEquip reqAdminMakeEquip_nanyi = getReqAdminMakeEquip_fa_gai(role , level ,"男衣") ;
                adminService.makeEquip(role, reqAdminMakeEquip_nanyi);
            }else{
                ReqAdminMakeEquip reqAdminMakeEquip_nvmao = getReqAdminMakeEquip_fa_gai(role , level ,"女帽") ;
                adminService.makeEquip(role, reqAdminMakeEquip_nvmao);
                ReqAdminMakeEquip reqAdminMakeEquip_nvyi = getReqAdminMakeEquip_fa_gai(role , level ,"女衣") ;
                adminService.makeEquip(role, reqAdminMakeEquip_nvyi);
            }
            ReqAdminMakeEquip reqAdminMakeEquip_xiezi_fa = getReqAdminMakeEquip_fa_gai(role , level ,"鞋") ;
            adminService.makeEquip(role, reqAdminMakeEquip_xiezi_fa);

            if(role.getPolar() == 1){
                ReqAdminMakeEquip reqAdminMakeEquip_wuqi = getReqAdminMakeEquip_fa_gai(role , level ,"枪") ;
                adminService.makeEquip(role, reqAdminMakeEquip_wuqi);
            }else if(role.getPolar() == 2){
                ReqAdminMakeEquip reqAdminMakeEquip_wuqi = getReqAdminMakeEquip_fa_gai(role , level ,"爪") ;
                adminService.makeEquip(role, reqAdminMakeEquip_wuqi);
            }else if(role.getPolar() == 3){
                ReqAdminMakeEquip reqAdminMakeEquip_wuqi = getReqAdminMakeEquip_fa_gai(role , level ,"剑") ;
                adminService.makeEquip(role, reqAdminMakeEquip_wuqi);
            }else if(role.getPolar() == 4){
                ReqAdminMakeEquip reqAdminMakeEquip_wuqi = getReqAdminMakeEquip_fa_gai(role , level ,"扇") ;
                adminService.makeEquip(role, reqAdminMakeEquip_wuqi);
            }else if(role.getPolar() == 5){
                ReqAdminMakeEquip reqAdminMakeEquip_wuqi = getReqAdminMakeEquip_fa_gai(role , level ,"锤") ;
                adminService.makeEquip(role, reqAdminMakeEquip_wuqi);
            }
        }else if(type == 4){//体
            if(role.getGender() == 1){ //男的
                ReqAdminMakeEquip reqAdminMakeEquip_nanmao = getReqAdminMakeEquip_ti_gai(role , level ,"男帽") ;
                adminService.makeEquip(role, reqAdminMakeEquip_nanmao);
                ReqAdminMakeEquip reqAdminMakeEquip_nanyi = getReqAdminMakeEquip_ti_gai(role , level ,"男衣") ;
                adminService.makeEquip(role, reqAdminMakeEquip_nanyi);
            }else{
                ReqAdminMakeEquip reqAdminMakeEquip_nvmao = getReqAdminMakeEquip_ti_gai(role , level ,"女帽") ;
                adminService.makeEquip(role, reqAdminMakeEquip_nvmao);
                ReqAdminMakeEquip reqAdminMakeEquip_nvyi = getReqAdminMakeEquip_ti_gai(role , level ,"女衣") ;
                adminService.makeEquip(role, reqAdminMakeEquip_nvyi);
            }
            ReqAdminMakeEquip reqAdminMakeEquip_xiezi_fa = getReqAdminMakeEquip_ti_gai(role , level ,"鞋") ;
            adminService.makeEquip(role, reqAdminMakeEquip_xiezi_fa);

            if(role.getPolar() == 1){
                ReqAdminMakeEquip reqAdminMakeEquip_wuqi = getReqAdminMakeEquip_ti_gai(role , level ,"枪") ;
                adminService.makeEquip(role, reqAdminMakeEquip_wuqi);
            }else if(role.getPolar() == 2){
                ReqAdminMakeEquip reqAdminMakeEquip_wuqi = getReqAdminMakeEquip_ti_gai(role , level ,"爪") ;
                adminService.makeEquip(role, reqAdminMakeEquip_wuqi);
            }else if(role.getPolar() == 3){
                ReqAdminMakeEquip reqAdminMakeEquip_wuqi = getReqAdminMakeEquip_ti_gai(role , level ,"剑") ;
                adminService.makeEquip(role, reqAdminMakeEquip_wuqi);
            }else if(role.getPolar() == 4){
                ReqAdminMakeEquip reqAdminMakeEquip_wuqi = getReqAdminMakeEquip_ti_gai(role , level ,"扇") ;
                adminService.makeEquip(role, reqAdminMakeEquip_wuqi);
            }else if(role.getPolar() == 5){
                ReqAdminMakeEquip reqAdminMakeEquip_wuqi = getReqAdminMakeEquip_ti_gai(role , level ,"锤") ;
                adminService.makeEquip(role, reqAdminMakeEquip_wuqi);
            }
        }
    }



    public ReqAdminMakeEquip getReqAdminMakeEquip_li_gai1(Role role , int roleLevel, String type  ){
        ReqAdminMakeEquip reqAdminMakeEquip = new  ReqAdminMakeEquip() ;
        int level=EquipProductUtil.getLevelStage(roleLevel);
        reqAdminMakeEquip.setReq_level((short) level);
        reqAdminMakeEquip.setEquipType(type);
        reqAdminMakeEquip.setRebuildLevel((byte) 12);
        if(type.equals("枪") ||type.equals("爪")||type.equals("剑")||type.equals("扇")||type.equals("锤")){
            reqAdminMakeEquip.setBlue("all_polar:5|earth:5|power:"+EquipProductUtil.getEquipDamageValue(level));
            reqAdminMakeEquip.setYellow("all_polar:5");
            reqAdminMakeEquip.setPink("power:"+EquipProductUtil.getEquipDamageValue(level));
            reqAdminMakeEquip.setGreen("enhanced_phy:10");
        }else if(type.equals("男帽") || type.equals("女帽") || type.equals("男衣") || type.equals("女衣")){
            reqAdminMakeEquip.setBlue("all_attrib:"+EquipProductUtil.getEquipProValue(true,level)+"|str:"+EquipProductUtil.getEquipProValue(false,level)+"|dex:"+EquipProductUtil.getEquipProValue(false,level));
            reqAdminMakeEquip.setYellow("all_attrib:"+EquipProductUtil.getEquipProValue(true,level));
            reqAdminMakeEquip.setPink("str:"+EquipProductUtil.getEquipProValue(false,level));
            reqAdminMakeEquip.setGreen("penetrate:30");
        }else if(type.equals("鞋")){
            reqAdminMakeEquip.setBlue("all_attrib:"+EquipProductUtil.getEquipProValue(true,level)
                    +"|dex:"+EquipProductUtil.getEquipProValue(false,level)
                    +"|speed:"+EquipProductUtil.getEquipSpeedValue(level));
            reqAdminMakeEquip.setYellow("all_attrib:"+EquipProductUtil.getEquipProValue(true,level));
            reqAdminMakeEquip.setPink("speed:"+EquipProductUtil.getEquipSpeedValue(level));
            reqAdminMakeEquip.setGreen("mag_dodge:30");
        }

        reqAdminMakeEquip.setBlack("phy_power:644"); ;
        reqAdminMakeEquip.setGongming("stunt_rate");
        return reqAdminMakeEquip ;
    }


    public ReqAdminMakeEquip getReqAdminMakeEquip_fa_gai(Role role , int roleLevel, String type  ){
        ReqAdminMakeEquip reqAdminMakeEquip = new  ReqAdminMakeEquip() ;
        int level=EquipProductUtil.getLevelStage(roleLevel);
        reqAdminMakeEquip.setReq_level((short) level);
        reqAdminMakeEquip.setEquipType(type);
        reqAdminMakeEquip.setRebuildLevel((byte) 12);
        if(type.equals("枪") ||type.equals("爪")||type.equals("剑")||type.equals("扇")||type.equals("锤")){
            reqAdminMakeEquip.setBlue("all_polar:5|metal:5|power:"+EquipProductUtil.getEquipDamageValue(level));
            reqAdminMakeEquip.setYellow("all_polar:5");
            reqAdminMakeEquip.setPink("power:"+EquipProductUtil.getEquipDamageValue(level));
            reqAdminMakeEquip.setGreen("penetrate_rate:30");
        }else if(type.equals("男帽") || type.equals("女帽") || type.equals("男衣") || type.equals("女衣")){
            reqAdminMakeEquip.setBlue("all_attrib:"+EquipProductUtil.getEquipProValue(true,level)
                    +"|wiz:"+EquipProductUtil.getEquipProValue(false,level)
                    +"|dex:"+EquipProductUtil.getEquipProValue(false,level));
            reqAdminMakeEquip.setPink("wiz:"+EquipProductUtil.getEquipProValue(false,level));
            reqAdminMakeEquip.setYellow("all_attrib:"+EquipProductUtil.getEquipProValue(true,level));
            reqAdminMakeEquip.setGreen("penetrate:30");
        }else if(type.equals("鞋")){
            reqAdminMakeEquip.setBlue("all_attrib:"+EquipProductUtil.getEquipProValue(true,level)
                    +"|dex:"+EquipProductUtil.getEquipProValue(false,level)
                    +"|speed:"+EquipProductUtil.getEquipSpeedValue(level));
            reqAdminMakeEquip.setYellow("all_attrib:"+EquipProductUtil.getEquipProValue(true,level));
            reqAdminMakeEquip.setPink("speed:"+EquipProductUtil.getEquipSpeedValue(level));
            reqAdminMakeEquip.setGreen("mag_dodge:30");
        }
        reqAdminMakeEquip.setBlack("mag_power:362"); ;
        reqAdminMakeEquip.setGongming("stunt_rate");
        return reqAdminMakeEquip ;
    }
    public ReqAdminMakeEquip getReqAdminMakeEquip_ti_gai(Role role , int roleLevel, String type  ){
        ReqAdminMakeEquip reqAdminMakeEquip = new  ReqAdminMakeEquip() ;
        int level=EquipProductUtil.getLevelStage(roleLevel);
        reqAdminMakeEquip.setReq_level((short) level);
        reqAdminMakeEquip.setEquipType(type);
        reqAdminMakeEquip.setRebuildLevel((byte) 12);
        if(type.equals("枪") ||type.equals("爪")||type.equals("剑")||type.equals("扇")||type.equals("锤")){
            reqAdminMakeEquip.setBlue("all_polar:5|water:5|con:"+EquipProductUtil.getEquipProValue(false,level));
            reqAdminMakeEquip.setYellow("all_polar:5");
            reqAdminMakeEquip.setPink("water:"+5);
            reqAdminMakeEquip.setGreen("super_poison:20");
        }else if(type.equals("男帽") || type.equals("女帽") || type.equals("男衣") || type.equals("女衣")){
            reqAdminMakeEquip.setBlue("all_attrib:"+EquipProductUtil.getEquipProValue(true,level)
                    +"|con:"+EquipProductUtil.getEquipProValue(false,level)
                    +"|def:"+650);
            reqAdminMakeEquip.setPink("con:"+EquipProductUtil.getEquipProValue(false,level));
            reqAdminMakeEquip.setYellow("all_attrib:"+EquipProductUtil.getEquipProValue(true,level));
            reqAdminMakeEquip.setGreen("D_skill_low_cost:10");
        }else if(type.equals("鞋")){
            reqAdminMakeEquip.setBlue("all_attrib:"+EquipProductUtil.getEquipProValue(true,level)
                    +"|con:"+EquipProductUtil.getEquipProValue(false,level)
                    +"|def:"+650);
            reqAdminMakeEquip.setYellow("all_attrib:"+EquipProductUtil.getEquipProValue(true,level));
            reqAdminMakeEquip.setPink("con:"+EquipProductUtil.getEquipSpeedValue(level));
            reqAdminMakeEquip.setGreen("D_skill_low_cost:10");
        }
        reqAdminMakeEquip.setBlack("def:1595"); ;
        reqAdminMakeEquip.setGongming("stunt_rate");
        return reqAdminMakeEquip ;
    }

}
